<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{$config_sitename}</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="__CSS__/userpp.css?t=201512301729" rel="stylesheet">
<link href="__CSS__/yf.css?t=201512301729" rel="stylesheet">
</head>
<body class="body-pad cl-b-lgrey">
    <include file="Public:user" />
    <div id="scroll-wrapper">
        <div id="scroller">
            <div class="loading-wrapper">
                <div class="loading"></div>
            </div>
            <!-- 随拍 -->
            <if condition="$type eq 4">
            <ul class="user-ssp-con user-center" id="thelist" data-type="spcenter" data-url="__WEBURL__{:U('User/getSuipai')}">
            <foreach name="list" item="ls">
                <li class="ub cl-b-white clickable ssp-item href-js" data-url="/weixin/suipai/detail?id={$ls.id}">
        			<img src="{$ls.uavatar}" class="ssp-tx tx-cir lazy">
        			<div class="ub-f1 ssp-cotent">
        				<p class="ssp-content-article cl-f-grey">
        					<span class="cl-f-orange text-overflow">{$ls.title}</span>
        				</p>
        				<ul class="ssp-content-img" data-pic="{$ls.pic}">
        				<foreach name="ls.thumb" item="thu">
        					<li class="lazy show-pic" data-original="__WEBURL__{$thu.thumb}" data-pic="{$thu.pic}"><img src="__IMAGES__/o6.png" class="oimg"></li>
        				</foreach>
        				</ul>
        				<div class="ssp-content-foot ub ub-pj">
        					<p class="ssp-content-time cl-f-lgrey">{$ls.create_time}</p>
        					<div class="option-wrapper ub">
        					    <div class="like ub ub-pc ub-ac">
        					    	<span class="icon-like"></span><p class="like-text cl-f-orange">0</p>
        					    </div>
        						<div class="comment ub ub-pc ub-ac">
        					    	<span class="icon-comment"></span><p class="comment-text cl-f-orange">{$ls.msgnum|getNullNum}</p>
        					    </div>
        					</div>
        				</div>
        			</div>
        		</li>
        	</foreach>
        	</ul>
        	</if>
        	
        	<!-- 食谱 -->
        	<if condition="$type eq 1">
        	<ul class="user-shipu-con user-center" id="thelist" data-type="workcenter" data-url="__WEBURL__{:U('User/getWork')}">
        	
        	    <foreach name="list" item="lt">
        		<li class="dongtai-item cl-b-white row clickable href-js" data-url="{:U('Work/detail')}?workid={$lt.workid}">
        			<div class="ub ub-ac">
        				<div class="dongtai-img lazy" data-original="{$lt.image}"><img src="__IMAGES__/o7.png" class="oimg"></div>
        				<div class="ub-f1 dongtai-text">
        					<h3 class="cl-f-dgrey f14 text-overflow">{$lt.title}</h3>
        					<p class="dongtai-article cl-f-lgrey f12">{$lt.content}</p>
        					<div class="option-wrapper ub">
        					    <div class="like ub ub-pc ub-ac">
        					    	<span class="icon-like-grey"></span><p class="like-text cl-f-lgrey f12">{$lt.goodnum}</p>
        					    </div>
        						<div class="comment ub ub-pc ub-ac">
        					    	<span class="icon-comment-grey"></span><p class="comment-text cl-f-lgrey f12">{$lt.msgnum}</p>
        					    </div>
        					</div>
        					<span class="dongtai-status cl-b-lorange cl-f-white f12">{$lt.status}</span>
        				</div>
        			</div>
        		</li>
        		</foreach>
        	</ul>
        	</if>
        	
        	<if condition="$type eq 7">
        	<ul class="user-shipu-con user-daoshi-con user-center" id="thelist" data-type="teachcenter" data-url="__WEBURL__{:U('User/getTeach')}">
        	<foreach name="list" item="lt">
        		<li class="dongtai-item cl-b-white row clickable href-js" data-url="{:U('Teach/detail')}?teachid={$lt.teachid}">
        			<div class="ub ub-ac">
        			<if condition="$lt.ifimg eq 1">
        				<div class="dongtai-img lazy" data-original="{$lt.image}">
        					<img src="__IMAGES__/odaoshi.png" class="oimg">
        					<if condition="$lt.iflight eq 1">
        					<img src="__IMAGES__/jian.png" alt="" class="jian">
        					</if>
        				</div>
    				<else/>
    				    <div class="dongtai-img lazy" data-original="__IMAGES__/touxiang5.png">
        					<img src="__IMAGES__/odaoshi.png" class="oimg">
        					<if condition="$lt.iflight eq 1">
        					<img src="__IMAGES__/jian.png" alt="" class="jian">
        					</if>
        				</div>
    				</if>
        				<div class="ub-f1 dongtai-text">
        					<h3 class="cl-f-dgrey f14 text-overflow">{$lt.title}</h3>
        					<p class="daoshi-text cl-f-lgrey f12">{$lt.content}</p>
        					<div class="option-wrapper ub">
        						<div class="comment ub ub-pc ub-ac ub-f1">
        					    	<span class="icon-comment-grey"></span><p class="comment-text cl-f-lgrey f12">{$lt.msgnum}</p>
        					    	<span class="user-daoshi-r ub-f1 cl-f-lgrey f12"><span class="cl-f-orange">{$lt.nickname}</span>发布于{$lt.create_time}</span>
        					    </div>
        					</div>
        				</div>
        			</div>
        		</li>
    		</foreach>
        	</ul>
        	</if>
        	<div class="add-loading ssp-loading">
				<div class="rect1"></div>
				<div class="rect2"></div>
				<div class="rect3"></div>
				<div class="rect4"></div>
				<div class="rect5"></div>
			</div>
    	</div>
	</div>
    <include file="Public:nav" />
	<script src="__JS__/jquery-1.11.1.min.js"></script>
	<script src="__JS__/jquery.lazyload.min.js"></script>
    <script src="__JS__/custom.js?t=201512301606"></script>
    <script src="__JS__/page.js?t=201512301738"></script>
    <script src="__JS__/common.js?t=201512301606"></script>
    <script>
    var img_url = "__IMAGES__";
    var shareTitle = "{$share.shareTitle}";
	var shareDesc = "{$share.shareDesc}";
	var shareUrl = "{$share.shareUrl}";
	var shareImg = "{$share.sharePic}";
	var jsdk = {$jsdk};
	
    $(function(){
        $('.user-center').on('click', '.href-js', function(e){
            e.preventDefault();
            var url = $(this).attr('data-url');
            if(url == undefined || url == '')
            {
                return false;
            }
            location.href = url;
        });
    });
    </script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="__JS__/wxpic.js?t=201512241801"></script>
</body>
</html>